//
//  TKIMHelper.h
//  TKIM
//
//  Created by liupm on 15/10/29.
//  Copyright © 2015年 liupm. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "TKIMSetting.h"

@interface TKIMHelper : NSObject


/**
 *  @Author lpm, 15-10-29 11:10:06
 *
 *  @brief  获得通讯录朋友列表分组
 *
 *  @return
 */
+ (TKIMSettingGroup *) getFriensListItemsGroup;


/**
 *  @Author lpm, 15-10-29 11:10:33
 *
 *  @brief  格式化好友列表
 *
 *  @param array
 *
 *  @return
 */
+ (NSMutableArray *) getFriendListDataBy:(NSMutableArray *)array;


/**
 *  @Author lpm, 15-10-29 11:10:48
 *
 *  @brief  获得通讯录索引
 *
 *  @param array
 *
 *  @return 
 */
+ (NSMutableArray *) getFriendListSectionBy:(NSMutableArray *)array;

/**
 *  @Author lpm, 15-10-29 11:10:06
 *
 *  @brief  获得设置列表分组
 *
 *  @return
 */
+ (NSMutableArray *) getSetGroups;


/**
 *  @Author lpm, 15-10-29 11:10:06
 *
 *  @brief  获得设置列表分组
 *
 *  @return
 */
+ (NSMutableArray *) getNotifySetGroups;


/**
 *  @Author lpm, 15-10-29 11:10:06
 *
 *  @brief  获得添加朋友列表分组
 *
 *  @return
 */
+ (TKIMSettingGroup *) getFriensAddItems;


/**
 *  @Author lpm, 15-08-03 18:08:32
 *
 *  @brief  过滤消息
 *
 *  @param text
 *
 *  @return
 */
+(NSString *)filterMessage:(NSString *)text;


/**
 *  获取群组列表
 *
 *  @return
 */
+ (TKIMSettingGroup *) getGroupListItemsGroup;


/**
 *  获取群组设置列表
 *
 *  @return
 */
+ (TKIMSettingGroup *) getGroupSettingItems;


/**
 *  获取公众号设置列表
 *
 *  @return
 */
+(TKIMSettingGroup *)getOfficialSettingItems;


/**
 *  @Author zhoufz, 16-4-7 16:10:06
 *
 *  @brief  获得帐号安全列表
 *
 *  @return
 */
+ (TKIMSettingGroup *) getAccountSafetyItems;


/**
 *  @Author zhoufz, 16-4-8 16:18:06
 *
 *  @brief  获得新的设置列表分组（更新至16-4-8）
 *
 *  @return
 */
+ (NSMutableArray *) getSettingGroups;


/**
 *  @Author zhoufz, 16-4-12 10:36:06
 
 *
 *  @brief
 *
 *  @return
 */
+ (NSMutableArray *) getChatDetailItems;


/**
 *  @Author zhoufz, 16-4-12 14:36:06
  *
 *  @brief
 *
 *  @return
 */
+ (NSMutableArray *) getChatInformationItems;


/**
 *  @Author lpm, 15-10-29 11:10:33
 *
 *  @brief  格式化好友列表
 *
 *  @param array
 *
 *  @return
 */
+ (NSMutableArray *) convertFriendListDataBy:(NSMutableArray *)array;


/**
 *  @Author lpm, 16-04-26 10:04:06
 *
 *  @brief  获得外网ip
 *
 *  @param callBack
 */
+(void)getIpAddress:(void(^)(NSString *ip))callBack;


/**
 *  @Author lpm, 16-04-26 10:04:06
 *
 *  @brief  获得所在地
 *
 *  @param callBack
 */
+(void)getAddress:(void(^)(NSString *addrees))callBack;


/**
 *  @Author lpm, 16-05-06 14:05:46
 *
 *  @brief  验证相册权限
 *
 *  @return
 */
+(BOOL)AVAuthorizationStatus;


/**
 *  @author zhengrs, 16-03-14 17:03:33
 *
 *  @brief 展示用户要显示的名字
 *
 *  @param user
 *
 *  @return
 */
+(NSString *)getShowNameWithUser:(TKIMUser *)user;


/**
 *  @Author lpm, 16-04-12 12:04:13
 *
 *  @brief  转换电话号码
 *
 *  @param mobile
 *
 *  @return
 */
+(NSString *)formatMoblie:(NSString *)mobile;


/**
 *  @Author lpm, 16-05-24 09:05:43
 *
 *  @brief  格式头像显示的名称
 *
 *  @param name
 *
 *  @return
 */
+(NSString *)formatHeadName:(NSString *)name;

/**
 *  @Author lpm, 16-05-25 09:05:52
 *
 *  @brief  展示大图
 */
+(void)showUserBigImage:(TKIMUser *)user fromView:(UIImageView *)fromView inView:(UIView *)inview;

/**
 *  @Author lpm, 15-12-04 14:12:23
 *
 *  @brief  过滤文字消息
 *
 *  @param text
 *
 *  @return
 */
+(NSAttributedString *)filterTxtMessage:(NSString *)text;


/**
 *  @Author lpm, 15-12-04 14:12:23
 *
 *  @brief  过滤文字消息
 *
 *  @param text
 *
 *  @return
 */
+(NSAttributedString *)filterTxtMessage:(NSString *)text font:(CGFloat)font imageBounds:(CGRect)bounds isDetectLinks:(BOOL)isDetectLinks;


@end
